package com.leyou.cat.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "Cart", description = "购物车参数类")
public class Cart {

    /** 用户id */
    @ApiModelProperty(value = "用户id", name = "userId")
    private Long userId;

    /** 商品id */
    @ApiModelProperty(value = "商品id", name = "skuId")
    private Long skuId;

    /** 标题 */
    @ApiModelProperty(value = "标题", name = "title")
    private String title;

    /** 图片 */
    @ApiModelProperty(value = "图片", name = "image")
    private String image;

    /** 加入购物车时的价格 */
    @ApiModelProperty(value = "加入购物车时的价格", name = "price")
    private Long price;

    /** 购买数量 */
    @ApiModelProperty(value = "购买数量", name = "num")
    private Integer num;

    /** 商品规格参数 */
    @ApiModelProperty(value = "商品规格参数", name = "ownSpec")
    private String ownSpec;
}